package com.xmy.system.mapper;

import com.xmy.common.core.domain.entity.WeChatUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
@Mapper
public interface WeChatUserMapper {
    WeChatUser getUserByOpenId(String openid);

    void insertUser(WeChatUser user);

    int updateUser( @Param("user") WeChatUser weChatUser);
    @Select("select * from xmy_wechat_user where id=#{userId}")
    WeChatUser getUserById(Long userId);

    WeChatUser checkPhoneUnique(String phone);
}
